package com.ql.dao.cgBingAn;

import com.ql.pojo.keshi.FangShe;
import com.ql.pojo.menzhen.Fomulary;
import com.ql.pojo.zydj.Zuyuandengji;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface CgBingAnMapper {
    /*门诊部病案*/
    List<Fomulary> qryAll(@Param("start")int start,
                          @Param("end") int end,
                          @Param("queryYiName") String queryYiName,
                          @Param("queryYiKeShi")int queryYiKeShi,
                          @Param("yiZhiXingTime")Date yiZhiXingTime,
                          @Param("queryDoc")String queryDoc,
                          @Param("queryyiQianMing") String queryyiQianMing,
                          @Param("queryUid") int queryUid) throws Exception;

    int qryCount(@Param("queryYiName")String queryYiName,
                 @Param("queryYiKeShi") int queryYiKeShi,
                 @Param("yiZhiXingTime")Date yiZhiXingTime,
                 @Param("queryDoc")String queryDoc,
                 @Param("queryyiQianMing") String queryyiQianMing,
                 @Param("queryUid") int queryUid
                 ) throws Exception;

    Fomulary qryById(@Param("id")int id)throws Exception;

    /*住院部病案列表*/
    List<Zuyuandengji> qryAllzhuyuan(@Param( "start" ) int start,
                                     @Param( "end" ) int end,
                                     @Param( "qryUserId" )int userId,
                                     @Param( "qryUserName" )String qryUserName,
                                     @Param( "qryKeshi" )String qryKeshi,
                                     @Param("qryDoc")String qryDoc,
                                     @Param( "qrycheckInTime" )Date qrycheckInTime)throws Exception;
    /*病案号记录数量*/
    int qryzyCount(@Param( "qryUserId" )int userId,
                   @Param( "qryUserName" )String qryUserName,
                   @Param( "qryKeshi" )String qryKeshi,
                   @Param("qryDoc")String qryDoc)throws Exception;

     /*根据病历号查询病人信息*/
    Zuyuandengji qryByUserId(int userId)throws Exception;
}
